﻿/// Write a program that replaces in a HTML document given as string all the tags <a href="…">…</a> 
/// with corresponding tags [URL=…]…/URL]. 
/// Sample HTML fragment:
/// Write a program that reads two dates in the format: day.month.year and calculates the number of days between them.
/// Example:
/// Enter the first date: 27.02.2006
/// Enter the second date: 3.03.2006
/// Distance: 4 days


using System;
using System.Globalization;

class zad16
{
    static void Main()
    {
        string start = "27.02.2006";
        string end = "3.03.2006";

        DateTime startDate = DateTime.ParseExact(start, "d.MM.yyyy", CultureInfo.InvariantCulture);
        DateTime endDate = DateTime.ParseExact(end, "d.MM.yyyy", CultureInfo.InvariantCulture);

        Console.WriteLine((endDate - startDate).TotalDays);
    }

}

